export function getFormatTime(timeStr) {
  const date = new Date(timeStr)
  let Y = date.getFullYear()
  let M = String(date.getMonth() + 1).padStart(2, '0')
  let D = String(date.getDate()).padStart(2, '0')
  let h = String(date.getHours()).padStart(2, '0')
  let m = String(date.getMinutes()).padStart(2, '0')
  let s = String(date.getSeconds()).padStart(2, '0')
  return `${Y}-${M}-${D} ${h}:${m}:${s}`;
}
